package com.wenbai.servicelightluxurystickers.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName(value = "stick_comment")
@Builder
public class StickComment implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long commentId;

    private String postId;

    private String userId;
    //评论
    private String commentContent;
    //点赞数
    private Integer likeCount;

    private String parentCommentId;

    private String userCommentId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
